import socket 

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

s.connect( ("www.baidu.com", 80) )

s.send(b'GET / HTTP/1.1\r\nwww.baidu.com: 80\r\n\r\n')

data = s.recv(10240000)

print(data.decode())